package ooday02;

public class ExtendsTest {
    public static void main(String[] args) {
        Student s1 = new Student();
        s1.name="张三";
        s1.age=12;
        s1.address="杭州";
        s1.className="一班";
        s1.sId="1201";
        s1.eat();
        s1.sleep();
        s1.sayHi();
        s1.study();


        Student s2=new Student("美美",18,"涂山","三班","12012");
        s2.eat();
        s2.sleep();
        s2.sayHi();
        s2.study();

        Teacher t1 = new Teacher("李林", 29, "山东", 6800.0);
        t1.sayHi();

        Doctor d1 = new Doctor("陈洁",37,"广东","主任医师");
        d1.cut();

    }
}
